import React from 'react';
import ReactDOM from 'react-dom';
import QRCode from 'qrcode.react';
import mirror, {actions, connect} from 'mirrorx';
import { Button } from 'antd-mobile';

class App extends React.Component { 
	constructor(props) {
		super(props);
        
	}

	componentDidMount(){

    }
   
    handleBack = () => {
        actions.routing.go(-1);
    }


	render() {
        let url = T.urlQuery("url") || (location.protocol + "//"+ location.host + "/product-detail?goodId=21")
        let demoauto = T.urlQuery("demoauto");
        if(demoauto){
            url = url+"&demoauto="+demoauto;
        }
        
        const Lang = window.LangMessage ||{};
		return (
            <div>
                <div className="tac mt30">
                    <QRCode value={url} size={250} />
                </div>
                {/* <div className="tac mt50">
                    <Button size="large" type="primary" onClick={this.handleBack}>{Lang.return || '返回'}</Button>
                </div> */}
            </div>
        )
	}
}

export default App;